<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Master
  Date: 2022/12/1
  Time: 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--点击新增按钮，应该跳转到新增页面--%>
<input type="button" value="新增" onclick="window.location.href='BrandAdd.jsp'">
<input type="button" value="查询" onclick="window.location.href='/findAll'">
<table>
    <thead>
    <tr>
        <td>序号</td>
        <td>品牌名称</td>
        <td>企业名称</td>
        <td>排序</td>
        <td>名片介绍</td>
        <td>状态</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${brandModelList}" var="model" varStatus="status">
        <tr>
            <td>${model.id}</td>
            <td>${model.name}</td>
            <td>${model.enterpriseName}</td>
            <td>${model.sort}</td>
            <td>${model.describe}</td>
            <td>${model.status}</td>
            <td>
                <input type="button" value="修改"  onclick="window.location.href='/findById?id=${model.id}'">
                <input type="button" value="删除" onclick="window.location.href='/delete?id=${model.id}'">
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
